package com.syh.niceweibo;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.syh.niceweibo.LoginActivity;
import com.syh.niceweibo.MainActivity;
import com.syh.niceweibo.common.Utils;


public class StartingActivity extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Intent intent=new Intent();
		if(Utils.needLogin(StartingActivity.this)){
			intent.setClass(StartingActivity.this, LoginActivity.class);
		}else{
			intent.setClass(StartingActivity.this, MainActivity.class);
		}
		startActivity(intent);
		finish();
	}
}
